import Phaser from 'phaser'

import GameScene from './scenes/GameScene'
import PreloadScene from './scenes/PreloadScene'
import GameOverScene from './scenes/GameOverScene'

const config: Phaser.Types.Core.GameConfig = {
  type: Phaser.AUTO,
  width: 800,
  height: 640,
  physics: {
    default: 'arcade',
    arcade: {
      gravity: { y: 200 },
      // debug: true
    }
  },
  scene: [ PreloadScene, GameScene, GameOverScene ]
}

export default new Phaser.Game(config)
